<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'questions-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">标记 <span class="required">*</span> 为必填.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'questions_title'); ?>
		<?php echo $form->textField($model,'questions_title',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'questions_title'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'questions_type'); ?>
		<?php echo $form->dropDownList($model,'questions_type',$model->getQTypeOption()); ?>
		<?php echo $form->error($model,'questions_type'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'questions_content'); ?>
		<?php echo $form->textArea($model,'questions_content',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'questions_content'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'questions_answer'); ?>
		<?php echo $form->textArea($model,'questions_answer',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'questions_answer'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'questions_explanation'); ?>
		<?php echo $form->textArea($model,'questions_explanation',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'questions_explanation'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? '提交' : '保存'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->